package com.wty.basic.duotai;

/**
 * @Author wangtengyu
 * @Create 2018-08-08-10:48
 */
public class Zi extends Fu {

    public String name="儿子的名字";
    public String school="儿子的学校";

    public static void staticMethod(){
        System.out.println("儿子静态方法");
    }

    public void testMethod(){
        System.out.println("儿子重写父类方法");
    }
    public void testMethod2(){
        System.out.println("儿子重写父类method2方法");
    }

    public void testMethod3(){
        System.out.println("儿子私有方法");
    }
}
